package com.blb.service;

import com.blb.entity.Company;
import com.blb.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ISupplierService {

    /**
     * 根据条件查询供应商信息
     */
    public List<Company> getSupplier(String id,Integer start,Integer length,String sname,String companyAddress);
    /**
     * 查询供应商总条数
     */
    public int getSupplierCount(String id,String sname,String companyAddress);

    public List<Product> getProduct(String id, Integer start, Integer length,String sid,Integer sortType);

    public int getProductCount(String id,String sid,Integer sortType);

    public Product getProById(String id);

}
